package com.trimer.rpc.demo.service.impl;

import com.trimer.rpc.core.RpcService;
import com.trimer.rpc.demo.service.HelloService;

@RpcService(value = HelloService.class)
public class HelloServiceImpl implements HelloService {

    @Override
    public String greeting() {
        return "Hi";
    }

    @Override
    public String HelloWorld(String name) {
        StringBuilder sBuilder = new StringBuilder("Hello world ");
        sBuilder.append(name);
        return sBuilder.toString();
    }

}
